//不能为空的规则
export function notEmpty(tip: string) {
    return function (rule: any, vaule?: string | number, callback?: Function) {
        if (!vaule) {
            return Promise.reject(tip)

        } else {
            return Promise.resolve()
        }
    };
}